<!doctype html>
<html>
<head>
	<meta charset="utf-8">
	<title>{$tpshop_config['shop_info_store_title']}</title>
	<meta http-equiv="keywords" content="{$tpshop_config['shop_info_store_keyword']}" />
	<meta name="description" content="{$tpshop_config['shop_info_store_desc']}" />

<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">

<link href="favicon.ico" mce_href="favicon.ico" rel="bookmark" type="image/x-icon" />
<link href="favicon.ico" mce_href="favicon.ico" rel="icon" type="image/x-icon" />
<link href="favicon.ico" mce_href="favicon.ico" rel="shortcut icon" type="image/x-icon" />
<!-- <link rel="stylesheet" href="__STATIC__/css/index.css" type="text/css">
<script src="__STATIC__/js/common.js"></script> -->


<script src="__PUBLIC__/js/jquery-1.8.2.min.js"></script>
<script src="__PUBLIC__/js/jquery-1.8.3.js"></script>
<script src="__PUBLIC__/js/global.js"></script>
<script src="__PUBLIC__/js/pc_common.js"></script>
<script src="__PUBLIC__/js/layer/layer.js"></script>
<script src="__STATIC__/js/jquery.artalert.js"></script>
<script src="__STATIC__/js/common.js"></script>


<!-- <link rel="stylesheet" href="__STATIC__/css/index.css" type="text/css"> -->
<link rel="stylesheet" type="text/css" href="__STATIC__/css/styles.css" media="all" />
<link rel="stylesheet" type="text/css" href="__STATIC__/css/layout.css" media="all" />
<link rel="stylesheet" type="text/css" href="__STATIC__/css/home.css" media="all" />
<link rel="stylesheet" type="text/css" href="__STATIC__/css/bootstrap.min.css" media="all" />
<link rel="stylesheet" type="text/css" href="__STATIC__/css/style.css" media="all" />
<link rel="stylesheet" type="text/css" href="__STATIC__/css/products.css" media="all" />

<!-- 
<link rel="stylesheet" type="text/css" href="http://www.chinachandelier.com/skin/frontend/base/default/css/widgets.css" media="all" />
<link rel="stylesheet" type="text/css" href="http://www.chinachandelier.com/skin/frontend/default/default/css/magestore/productcontact.css" media="all" />
<link rel="stylesheet" type="text/css" href="http://www.chinachandelier.com/skin/frontend/default/default/css/print.css" media="print" />

<script type="text/javascript" src="http://www.chinachandelier.com/js/prototype/prototype.js"></script>
<script type="text/javascript" src="http://www.chinachandelier.com/js/lib/ccard.js"></script>
<script type="text/javascript" src="http://www.chinachandelier.com/js/prototype/validation.js"></script>
<script type="text/javascript" src="http://www.chinachandelier.com/js/scriptaculous/builder.js"></script>
<script type="text/javascript" src="http://www.chinachandelier.com/js/scriptaculous/effects.js"></script>
<script type="text/javascript" src="http://www.chinachandelier.com/js/scriptaculous/dragdrop.js"></script>
<script type="text/javascript" src="http://www.chinachandelier.com/js/scriptaculous/controls.js"></script>
<script type="text/javascript" src="http://www.chinachandelier.com/js/scriptaculous/slider.js"></script>
<script type="text/javascript" src="http://www.chinachandelier.com/js/varien/js.js"></script>
<script type="text/javascript" src="http://www.chinachandelier.com/js/varien/form.js"></script>
<script type="text/javascript" src="http://www.chinachandelier.com/js/varien/menu.js"></script>
<script type="text/javascript" src="http://www.chinachandelier.com/js/mage/translate.js"></script>
<script type="text/javascript" src="http://www.chinachandelier.com/js/mage/cookies.js"></script>
<script type="text/javascript" src="http://www.chinachandelier.com/js/chandelier/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="http://www.chinachandelier.com/js/chandelier/simplegallery.js"></script>
<script type="text/javascript" src="http://www.chinachandelier.com/js/chandelier/jquery.tinycarousel.min.js"></script>
<script type="text/javascript" src="http://www.chinachandelier.com/js/magestore/productcontact.js"></script>
 -->

</head>
<body style="padding-top:20px;">




<link rel="stylesheet" href="__STATIC__/css/page.css" type="text/css">
<script src="__PUBLIC__/js/pc_common.js"></script>
<link rel="stylesheet" href="__STATIC__/css/jqzoom.css" type="text/css">
<link rel="stylesheet" href="__STATIC__/css/location.css" type="text/css"><!-- 收貨地址，物流運費 -->

<script src="__PUBLIC__/js/layer/layer.js"></script>

<link href="__STATIC__/css/cloud-zoom.css" rel="stylesheet" type="text/css" />
<script src="__STATIC__/js/cloud-zoom.1.0.2.js" type="text/javascript"></script>

<script type="text/javascript" src="__STATIC__/js/jquery.tinycarousel.min.js"></script>
<script type="text/javascript">
    $(function(){
        $('.cloud-zoom').attr('rel','adjustX:30');
    })
</script>


<include file="goodsinfoclass" />


<script>

    $(document).ready()
    {
        ajax_price();
    }



function ajax_price(){



    $.ajax({
        type : "POST",
        url:"{:U('Home/Cart/ajaxAddCartNew')}",//+tab,
        data : $('#form').serialize(),// 你的formid
        dataType:'json',
        success: function(data){
			if(data.old_hl_price!="0.00")
			{
            	$('.goods_price_old').text(data.money_str+data.old_hl_price);
			}
            $('.goods_price_new').text(data.money_str+data.price);

        }
    });
}



    function ajaxAddCart1(){
        $.ajax({
            type : "POST",
            url:"{:U('Home/Cart/ajaxAddCartNew')}"+"?submit=1",//+tab,
            data : $('#form').serialize(),// 你的formid
            dataType:'json',
            success: function(data){
                /*layer.msg('Product added to shopping cart successfully.', {
                    icon: 1,
                    time: 2000
                });*/
				
				layer.confirm('Has been successfully added to the shopping cart, whether to go to the shopping cart to view?', {
				  btn: ['Clearing','Continue to buy'] //按钮
				  ,title:"Tips"
				}, function(){
				 // layer.msg('的确很重要', {icon: 1});
				 window.open("/index.php?m=Home&c=Cart&a=Cart");
				 //.href = "/index.php?m=Home&c=Cart&a=Cart";   
				}, function(){
				 
				});

               // window.location.href="{:U('Home/Cart/Cart')}";
            }
        });
    }


</script>


<!--------收貨地址，物流運費-開始-------------->
<script src="__STATIC__/js/location.js"></script>
<!--------收貨地址，物流運費--結束-------------->

<script src="__PUBLIC__/js/jqueryUrlGet.js"></script><!--獲取get參數插件-->
<script> set_first_leader(); //設置推薦人 </script>

